package client.tablete.buttons;

import client.tablete.workspace.CommunicationActivity;
import android.view.View;
import android.view.View.OnClickListener;
import android.content.Intent;
import android.net.Uri;


public class NavigatorButtonListener implements OnClickListener {
	
	String web;
	CommunicationActivity commA;
	
	public NavigatorButtonListener(CommunicationActivity commA, String web){
		this.commA = commA;
		this.web = web;
	}
	
	@Override
	public void onClick(View v) {
		// TODO Auto-generated method stub
		Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(web));  
		  
		commA.startActivity(intent);  

		
	}  
	

}
